public class as {
    public static void main(String[] args) {
        System.out.println("随机值[0, 1): "+Math.random() );
        System.out.println("随机值[0, 100): "+Math.random()*100 );
        System.out.println("随机值[10, 100): "+Math.random()*90+10 );
        System.out.println("随机值[100, 150): "+Math.random()*(150-100)+100 );
        int lotteryNumber = (int) (Math.random() * 219 + 100);
        System.out.println("恭喜中奖号码为：" + lotteryNumber);
    }
}